package com.wn.icloud.utils;

import com.wn.icloud.domain.BaseEntityDomain;

/**
 * @author kyy
 * @date 2019/01/15
 */
public class BaseEntityUtil {

    public static void clearEntity(BaseEntityDomain baseEntityDomain) {
        baseEntityDomain.setCreatedBy(null);
        baseEntityDomain.setCreatedDate(null);
        baseEntityDomain.setLastModifiedBy(null);
        baseEntityDomain.setLastModifiedDate(null);
        baseEntityDomain.setId(null);
        baseEntityDomain.setDeleted(false);
    }
}
